how to find context free grammar for a language